import Cookies from 'js-cookie'

const activeKey = 'active'
export function setactive(active) {
  return Cookies.set(activeKey, active)
}
export function getactive() {
  return Cookies.get(activeKey)
}
export function delactive() {
  return Cookies.remove(activeKey)
}

const applyidKey = 'applyid'
export function setapplyid(applyid) {
  return Cookies.set(applyidKey, applyid)
}
export function getapplyid() {
  return Cookies.get(applyidKey)
}
export function delapplyid() {
  return Cookies.remove(applyidKey)
}

const openIdKey = 'openId'
export function setopenId(openId) {
  return Cookies.set(openIdKey, openId)
}
export function getopenId() {
  return Cookies.get(openIdKey)
}
export function delopenId() {
  return Cookies.remove(openIdKey)
}

const startInfo = 'startInfo'
export function setstartInfo(startInfoData) {
  return Cookies.set(startInfo, startInfoData)
}
export function getstartInfo() {
  return Cookies.get(startInfo)
}
export function delstartInfo() {
  return Cookies.remove(startInfo)
}